package com.sangeng.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sangeng.dto.ArticleDto;
import com.sangeng.entity.Article;
import com.sangeng.entity.ResponseResult;

import java.util.List;


public interface ArticleService extends IService<Article> {

    ResponseResult getHotarticleList();
    //获取文章列表
    ResponseResult getArticleList(Integer pageNum,Integer pageSize,Long categoryId);

    ResponseResult getArticledetails(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult addBlog(ArticleDto articleDto);


    ResponseResult deleteArticleList(List<Long> idList);

    ResponseResult getArticleById(Long id);


    ResponseResult getArticleByTitle(Integer pageNum, Integer pageSize, String title, String summary);
}
